
function viewImageOnClick(event) {
	var url = event.target.getAttribute('src');
	if (url !== "") {
		window.location = 'browser.jsp?url=' + url;
	}
}

window.onload = function(event) {
	var thumbs = document.getElementsByClassName('thumb');
	for (var i=0; i < thumbs.length; i++) {
		thumbs[i].onclick = viewImageOnClick;
	}
}